package org.batatasframework.support.searchable;

import java.util.ArrayList;
import java.util.List;

import cn.bonoon.kernel.util.Opt;

public class FieldQueryedDefault extends FieldQueryed{

	/** 这个指标可进行的操作，如：等于、大于、小于等 */
	private final List<FieldQueryedOpt> opts = new ArrayList<>();

	public FieldQueryedDefault(String name, String title, int types) {
		super(name, title, types);
	}

	public FieldQueryed set(Opt...opts){
		for(Opt opt : opts){
			this.opts.add(new FieldQueryedOpt(opt));
		}
		return this;
	}
	
	public List<FieldQueryedOpt> getOpts() {
		return opts;
	}

}
